package com.ljx.itbbs.server.article.service.impl;

import com.ljx.itbbs.server.article.dao.ResourceUserRelationDao;
import com.ljx.itbbs.server.article.domain.entity.ResourceUserRelationEntity;
import com.ljx.itbbs.server.article.service.ResourceUserRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResourceUserRelationServiceImpl implements ResourceUserRelationService {

    @Autowired
    private ResourceUserRelationDao resourceUserRelationDao;

    @Override
    public List<ResourceUserRelationEntity> batchResourceUser(Long userId, List<Long> resIds) {
        return resourceUserRelationDao.batchResourceUser(userId, resIds);
    }

    @Override
    public void save(ResourceUserRelationEntity resourceUserRelationEntity) {
        resourceUserRelationDao.save(resourceUserRelationEntity);
    }
}
